Integrand size = 15, antiderivative size = 104 \[ \int \frac {(a+b x)^4}{(c+d x)^2} \, dx=\frac {6 b^2 (b c-a d)^2 x}{d^4}-\frac {(b c-a d)^4}{d^5 (c+d x)}-\frac {2 b^3 (b c-a d) (c+d x)^2}{d^5}+\frac {b^4 (c+d x)^3}{3 d^5}-\frac {4 b (b c-a d)^3 \log (c+d x)}{d^5} \]
6*b^2*(-a*d+b*c)^2*x/d^4-(-a*d+b*c)^4/d^5/(d*x+c)-2*b^3*(-a*d+b*c)*(d*x+c) ^2/d^5+1/3*b^4*(d*x+c)^3/d^5-4*b*(-a*d+b*c)^3*ln(d*x+c)/d^5
Time = 0.03 (sec) , antiderivative size = 165, normalized size of antiderivative = 1.59 \[ \int \frac {(a+b x)^4}{(c+d x)^2} \, dx=\frac {12 a^3 b c d^3-3 a^4 d^4+18 a^2 b^2 d^2 \left (-c^2+c d x+d^2 x^2\right )+6 a b^3 d \left (2 c^3-4 c^2 d x-3 c d^2 x^2+d^3 x^3\right )+b^4 \left (-3 c^4+9 c^3 d x+6 c^2 d^2 x^2-2 c d^3 x^3+d^4 x^4\right )-12 b (b c-a d)^3 (c+d x) \log (c+d x)}{3 d^5 (c+d x)} \]
(12*a^3*b*c*d^3 - 3*a^4*d^4 + 18*a^2*b^2*d^2*(-c^2 + c*d*x + d^2*x^2) + 6* a*b^3*d*(2*c^3 - 4*c^2*d*x - 3*c*d^2*x^2 + d^3*x^3) + b^4*(-3*c^4 + 9*c^3* d*x + 6*c^2*d^2*x^2 - 2*c*d^3*x^3 + d^4*x^4) - 12*b*(b*c - a*d)^3*(c + d*x )*Log[c + d*x])/(3*d^5*(c + d*x))
Time = 0.27 (sec) , antiderivative size = 104, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {49, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {(a+b x)^4}{(c+d x)^2} \, dx\) |
\(\Big \downarrow \) 49 |
\(\displaystyle \int \left (-\frac {4 b^3 (c+d x) (b c-a d)}{d^4}+\frac {6 b^2 (b c-a d)^2}{d^4}-\frac {4 b (b c-a d)^3}{d^4 (c+d x)}+\frac {(a d-b c)^4}{d^4 (c+d x)^2}+\frac {b^4 (c+d x)^2}{d^4}\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {2 b^3 (c+d x)^2 (b c-a d)}{d^5}+\frac {6 b^2 x (b c-a d)^2}{d^4}-\frac {(b c-a d)^4}{d^5 (c+d x)}-\frac {4 b (b c-a d)^3 \log (c+d x)}{d^5}+\frac {b^4 (c+d x)^3}{3 d^5}\) |
(6*b^2*(b*c - a*d)^2*x)/d^4 - (b*c - a*d)^4/(d^5*(c + d*x)) - (2*b^3*(b*c - a*d)*(c + d*x)^2)/d^5 + (b^4*(c + d*x)^3)/(3*d^5) - (4*b*(b*c - a*d)^3*L og[c + d*x])/d^5
3.14.44.3.1 Defintions of rubi rules used
Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int [ExpandIntegrand[(a + b*x)^m*(c + d*x)^n, x], x] /; FreeQ[{a, b, c, d}, x] && IGtQ[m, 0] && IGtQ[m + n + 2, 0]
Time = 0.22 (sec) , antiderivative size = 175, normalized size of antiderivative = 1.68
method | result | size |
default | \(\frac {b^{2} \left (\frac {1}{3} d^{2} x^{3} b^{2}+2 x^{2} a b \,d^{2}-x^{2} b^{2} c d +6 a^{2} d^{2} x -8 a b c d x +3 b^{2} c^{2} x \right )}{d^{4}}+\frac {4 b \left (a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}\right ) \ln \left (d x +c \right )}{d^{5}}-\frac {a^{4} d^{4}-4 a^{3} b c \,d^{3}+6 a^{2} b^{2} c^{2} d^{2}-4 a \,b^{3} c^{3} d +b^{4} c^{4}}{d^{5} \left (d x +c \right )}\) | \(175\) |
norman | \(\frac {\frac {\left (a^{4} d^{4}-4 a^{3} b c \,d^{3}+12 a^{2} b^{2} c^{2} d^{2}-12 a \,b^{3} c^{3} d +4 b^{4} c^{4}\right ) x}{d^{4} c}+\frac {b^{4} x^{4}}{3 d}+\frac {2 b^{2} \left (3 a^{2} d^{2}-3 a b c d +b^{2} c^{2}\right ) x^{2}}{d^{3}}+\frac {2 b^{3} \left (3 a d -b c \right ) x^{3}}{3 d^{2}}}{d x +c}+\frac {4 b \left (a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}\right ) \ln \left (d x +c \right )}{d^{5}}\) | \(181\) |
risch | \(\frac {b^{4} x^{3}}{3 d^{2}}+\frac {2 b^{3} x^{2} a}{d^{2}}-\frac {b^{4} x^{2} c}{d^{3}}+\frac {6 b^{2} a^{2} x}{d^{2}}-\frac {8 b^{3} a c x}{d^{3}}+\frac {3 b^{4} c^{2} x}{d^{4}}+\frac {4 b \ln \left (d x +c \right ) a^{3}}{d^{2}}-\frac {12 b^{2} \ln \left (d x +c \right ) a^{2} c}{d^{3}}+\frac {12 b^{3} \ln \left (d x +c \right ) a \,c^{2}}{d^{4}}-\frac {4 b^{4} \ln \left (d x +c \right ) c^{3}}{d^{5}}-\frac {a^{4}}{d \left (d x +c \right )}+\frac {4 a^{3} b c}{d^{2} \left (d x +c \right )}-\frac {6 a^{2} b^{2} c^{2}}{d^{3} \left (d x +c \right )}+\frac {4 a \,b^{3} c^{3}}{d^{4} \left (d x +c \right )}-\frac {b^{4} c^{4}}{d^{5} \left (d x +c \right )}\) | \(230\) |
parallelrisch | \(\frac {d^{4} x^{4} b^{4}+6 a \,b^{3} d^{4} x^{3}-2 b^{4} c \,d^{3} x^{3}+12 \ln \left (d x +c \right ) x \,a^{3} b \,d^{4}-36 \ln \left (d x +c \right ) x \,a^{2} b^{2} c \,d^{3}+36 \ln \left (d x +c \right ) x a \,b^{3} c^{2} d^{2}-12 \ln \left (d x +c \right ) x \,b^{4} c^{3} d +18 a^{2} b^{2} d^{4} x^{2}-18 a \,b^{3} c \,d^{3} x^{2}+6 b^{4} c^{2} d^{2} x^{2}+12 \ln \left (d x +c \right ) a^{3} b c \,d^{3}-36 \ln \left (d x +c \right ) a^{2} b^{2} c^{2} d^{2}+36 \ln \left (d x +c \right ) a \,b^{3} c^{3} d -12 \ln \left (d x +c \right ) b^{4} c^{4}-3 a^{4} d^{4}+12 a^{3} b c \,d^{3}-36 a^{2} b^{2} c^{2} d^{2}+36 a \,b^{3} c^{3} d -12 b^{4} c^{4}}{3 d^{5} \left (d x +c \right )}\) | \(275\) |
b^2/d^4*(1/3*d^2*x^3*b^2+2*x^2*a*b*d^2-x^2*b^2*c*d+6*a^2*d^2*x-8*a*b*c*d*x +3*b^2*c^2*x)+4*b/d^5*(a^3*d^3-3*a^2*b*c*d^2+3*a*b^2*c^2*d-b^3*c^3)*ln(d*x +c)-(a^4*d^4-4*a^3*b*c*d^3+6*a^2*b^2*c^2*d^2-4*a*b^3*c^3*d+b^4*c^4)/d^5/(d *x+c)
Leaf count of result is larger than twice the leaf count of optimal. 267 vs. \(2 (102) = 204\).
Time = 0.22 (sec) , antiderivative size = 267, normalized size of antiderivative = 2.57 \[ \int \frac {(a+b x)^4}{(c+d x)^2} \, dx=\frac {b^{4} d^{4} x^{4} - 3 \, b^{4} c^{4} + 12 \, a b^{3} c^{3} d - 18 \, a^{2} b^{2} c^{2} d^{2} + 12 \, a^{3} b c d^{3} - 3 \, a^{4} d^{4} - 2 \, {\left (b^{4} c d^{3} - 3 \, a b^{3} d^{4}\right )} x^{3} + 6 \, {\left (b^{4} c^{2} d^{2} - 3 \, a b^{3} c d^{3} + 3 \, a^{2} b^{2} d^{4}\right )} x^{2} + 3 \, {\left (3 \, b^{4} c^{3} d - 8 \, a b^{3} c^{2} d^{2} + 6 \, a^{2} b^{2} c d^{3}\right )} x - 12 \, {\left (b^{4} c^{4} - 3 \, a b^{3} c^{3} d + 3 \, a^{2} b^{2} c^{2} d^{2} - a^{3} b c d^{3} + {\left (b^{4} c^{3} d - 3 \, a b^{3} c^{2} d^{2} + 3 \, a^{2} b^{2} c d^{3} - a^{3} b d^{4}\right )} x\right )} \log \left (d x + c\right )}{3 \, {\left (d^{6} x + c d^{5}\right )}} \]
1/3*(b^4*d^4*x^4 - 3*b^4*c^4 + 12*a*b^3*c^3*d - 18*a^2*b^2*c^2*d^2 + 12*a^ 3*b*c*d^3 - 3*a^4*d^4 - 2*(b^4*c*d^3 - 3*a*b^3*d^4)*x^3 + 6*(b^4*c^2*d^2 - 3*a*b^3*c*d^3 + 3*a^2*b^2*d^4)*x^2 + 3*(3*b^4*c^3*d - 8*a*b^3*c^2*d^2 + 6 *a^2*b^2*c*d^3)*x - 12*(b^4*c^4 - 3*a*b^3*c^3*d + 3*a^2*b^2*c^2*d^2 - a^3* b*c*d^3 + (b^4*c^3*d - 3*a*b^3*c^2*d^2 + 3*a^2*b^2*c*d^3 - a^3*b*d^4)*x)*l og(d*x + c))/(d^6*x + c*d^5)
Time = 0.39 (sec) , antiderivative size = 155, normalized size of antiderivative = 1.49 \[ \int \frac {(a+b x)^4}{(c+d x)^2} \, dx=\frac {b^{4} x^{3}}{3 d^{2}} + \frac {4 b \left (a d - b c\right )^{3} \log {\left (c + d x \right )}}{d^{5}} + x^{2} \cdot \left (\frac {2 a b^{3}}{d^{2}} - \frac {b^{4} c}{d^{3}}\right ) + x \left (\frac {6 a^{2} b^{2}}{d^{2}} - \frac {8 a b^{3} c}{d^{3}} + \frac {3 b^{4} c^{2}}{d^{4}}\right ) + \frac {- a^{4} d^{4} + 4 a^{3} b c d^{3} - 6 a^{2} b^{2} c^{2} d^{2} + 4 a b^{3} c^{3} d - b^{4} c^{4}}{c d^{5} + d^{6} x} \]
b**4*x**3/(3*d**2) + 4*b*(a*d - b*c)**3*log(c + d*x)/d**5 + x**2*(2*a*b**3 /d**2 - b**4*c/d**3) + x*(6*a**2*b**2/d**2 - 8*a*b**3*c/d**3 + 3*b**4*c**2 /d**4) + (-a**4*d**4 + 4*a**3*b*c*d**3 - 6*a**2*b**2*c**2*d**2 + 4*a*b**3* c**3*d - b**4*c**4)/(c*d**5 + d**6*x)
Time = 0.22 (sec) , antiderivative size = 183, normalized size of antiderivative = 1.76 \[ \int \frac {(a+b x)^4}{(c+d x)^2} \, dx=-\frac {b^{4} c^{4} - 4 \, a b^{3} c^{3} d + 6 \, a^{2} b^{2} c^{2} d^{2} - 4 \, a^{3} b c d^{3} + a^{4} d^{4}}{d^{6} x + c d^{5}} + \frac {b^{4} d^{2} x^{3} - 3 \, {\left (b^{4} c d - 2 \, a b^{3} d^{2}\right )} x^{2} + 3 \, {\left (3 \, b^{4} c^{2} - 8 \, a b^{3} c d + 6 \, a^{2} b^{2} d^{2}\right )} x}{3 \, d^{4}} - \frac {4 \, {\left (b^{4} c^{3} - 3 \, a b^{3} c^{2} d + 3 \, a^{2} b^{2} c d^{2} - a^{3} b d^{3}\right )} \log \left (d x + c\right )}{d^{5}} \]
-(b^4*c^4 - 4*a*b^3*c^3*d + 6*a^2*b^2*c^2*d^2 - 4*a^3*b*c*d^3 + a^4*d^4)/( d^6*x + c*d^5) + 1/3*(b^4*d^2*x^3 - 3*(b^4*c*d - 2*a*b^3*d^2)*x^2 + 3*(3*b ^4*c^2 - 8*a*b^3*c*d + 6*a^2*b^2*d^2)*x)/d^4 - 4*(b^4*c^3 - 3*a*b^3*c^2*d + 3*a^2*b^2*c*d^2 - a^3*b*d^3)*log(d*x + c)/d^5
Leaf count of result is larger than twice the leaf count of optimal. 245 vs. \(2 (102) = 204\).
Time = 0.31 (sec) , antiderivative size = 245, normalized size of antiderivative = 2.36 \[ \int \frac {(a+b x)^4}{(c+d x)^2} \, dx=\frac {{\left (b^{4} - \frac {6 \, {\left (b^{4} c d - a b^{3} d^{2}\right )}}{{\left (d x + c\right )} d} + \frac {18 \, {\left (b^{4} c^{2} d^{2} - 2 \, a b^{3} c d^{3} + a^{2} b^{2} d^{4}\right )}}{{\left (d x + c\right )}^{2} d^{2}}\right )} {\left (d x + c\right )}^{3}}{3 \, d^{5}} + \frac {4 \, {\left (b^{4} c^{3} - 3 \, a b^{3} c^{2} d + 3 \, a^{2} b^{2} c d^{2} - a^{3} b d^{3}\right )} \log \left (\frac {{\left | d x + c \right |}}{{\left (d x + c\right )}^{2} {\left | d \right |}}\right )}{d^{5}} - \frac {\frac {b^{4} c^{4} d^{3}}{d x + c} - \frac {4 \, a b^{3} c^{3} d^{4}}{d x + c} + \frac {6 \, a^{2} b^{2} c^{2} d^{5}}{d x + c} - \frac {4 \, a^{3} b c d^{6}}{d x + c} + \frac {a^{4} d^{7}}{d x + c}}{d^{8}} \]
1/3*(b^4 - 6*(b^4*c*d - a*b^3*d^2)/((d*x + c)*d) + 18*(b^4*c^2*d^2 - 2*a*b ^3*c*d^3 + a^2*b^2*d^4)/((d*x + c)^2*d^2))*(d*x + c)^3/d^5 + 4*(b^4*c^3 - 3*a*b^3*c^2*d + 3*a^2*b^2*c*d^2 - a^3*b*d^3)*log(abs(d*x + c)/((d*x + c)^2 *abs(d)))/d^5 - (b^4*c^4*d^3/(d*x + c) - 4*a*b^3*c^3*d^4/(d*x + c) + 6*a^2 *b^2*c^2*d^5/(d*x + c) - 4*a^3*b*c*d^6/(d*x + c) + a^4*d^7/(d*x + c))/d^8
Time = 0.08 (sec) , antiderivative size = 203, normalized size of antiderivative = 1.95 \[ \int \frac {(a+b x)^4}{(c+d x)^2} \, dx=x^2\,\left (\frac {2\,a\,b^3}{d^2}-\frac {b^4\,c}{d^3}\right )-x\,\left (\frac {2\,c\,\left (\frac {4\,a\,b^3}{d^2}-\frac {2\,b^4\,c}{d^3}\right )}{d}-\frac {6\,a^2\,b^2}{d^2}+\frac {b^4\,c^2}{d^4}\right )+\frac {b^4\,x^3}{3\,d^2}-\frac {\ln \left (c+d\,x\right )\,\left (-4\,a^3\,b\,d^3+12\,a^2\,b^2\,c\,d^2-12\,a\,b^3\,c^2\,d+4\,b^4\,c^3\right )}{d^5}-\frac {a^4\,d^4-4\,a^3\,b\,c\,d^3+6\,a^2\,b^2\,c^2\,d^2-4\,a\,b^3\,c^3\,d+b^4\,c^4}{d\,\left (x\,d^5+c\,d^4\right )} \]
x^2*((2*a*b^3)/d^2 - (b^4*c)/d^3) - x*((2*c*((4*a*b^3)/d^2 - (2*b^4*c)/d^3 ))/d - (6*a^2*b^2)/d^2 + (b^4*c^2)/d^4) + (b^4*x^3)/(3*d^2) - (log(c + d*x )*(4*b^4*c^3 - 4*a^3*b*d^3 + 12*a^2*b^2*c*d^2 - 12*a*b^3*c^2*d))/d^5 - (a^ 4*d^4 + b^4*c^4 + 6*a^2*b^2*c^2*d^2 - 4*a*b^3*c^3*d - 4*a^3*b*c*d^3)/(d*(c *d^4 + d^5*x))